package com.zhouzj.task.springcode.code.api;

/**
 * @Author: zhouzhijun
 * @Date: 2021/8/5 15:21
 */
public interface CodeService {

    /**
     * 发送验证码
     *
     * @param email
     * @return java.lang.Boolean
     * @author zhouzhijun
     * @Date 15:17 2021/8/5
     */
    Boolean send(String email);

    /**
     * 校验验证码是否正确
     *
     * @param email
     * @param code
     * @return java.lang.Boolean
     * @author zhouzhijun
     * @Date 15:19 2021/8/5
     */
    Boolean check(String email, String code);
}
